<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/5/4
  Time: 17:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/web_top.jsp" %>

<title>坏账列表</title>
<div ng-include="finance" class="includeStyle ">

        <div class="bgSortScroll">
            <!-- ngIf: HbHr.hr177 -->
            <div class="public-bgContent " ng-show="financeShow._default"   ng-if="HbHr.hr177">
                <!--表单搜索-->
                <div class="public-bgDate">
                    <div class="se-re">
                        <select ng-model="param.time_type" class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">时间类型</option>
                            <option value="2">创单时间</option>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <span>
            <input type="text" autocomplete="off" id="start_time" ng-model="param.start_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="开始时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                    <em>
                        ~
                    </em>
                    <span>
            <input type="text" autocomplete="off" id="end_time" ng-model="param.end_time" ng-focus="remHight()"
                   ng-class="{'error':redErr.dateTime}" placeholder="结束时间"
                   class="ng-pristine ng-untouched ng-valid ng-empty datepicker">
            <i class="iconfont icon-riqi"></i>
        </span>
                    <div class="se-re">
                        <select id="seleNames" ng-model="param.type" ng-class="{'error':redErr.seleName}"
                                ng-focus="F.remHight()" ng-change="changeName()"
                                class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">选择字段</option>
                            <option value="1">借款编号</option>
                            <option value="2">客户姓名</option>
                            <option value="3">手机号码</option>
                            <option value="4">身份证号码</option>
                            <option value="5">业务员姓名</option>
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <span>
            <input type="text" autocomplete="off" id="inputNames" placeholder="请输入关键字" ng-focus="F.remHight()" ng-model="param.name"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
        </span>
                    <div class="se-re">
                        <select id="at_id"></select>

                        <script type="text/x-handlebars-template" id="at_id_tpl">
                            <option value="">分期</option>
                            {{#each .}}
                            <option value="{{id}}" data-num="{{num}}">{{atName}}</option>
                            {{/each}}
                        </script>

                        <span class="se-po"></span>
                    </div>
                    <div class="se-re">
                        <select id="loan_way" class="ng-pristine ng-untouched ng-valid ng-empty">
                            <option value="" selected="selected">贷款方式</option>
                        </select>
                        <span class="se-po"></span>
                        <script type="text/x-handlebars-template" id="loanMethod_list_tpl">
                            {{#each content}}
                            <option value="{{id}}">{{name}}</option>
                            {{/each}}
                        </script>
                    </div>
                    <div id="sousuo_badDebtsDtails" style="display: inline-block"></div>
                    <script type="x-handlebars-template" id="sousuo_badDebtsDtails_tpl">
                        <div class="se-re">
                            <select ng-options="a.id as a.d_name for a in section" ng-model="param.departmentId"
                                    class="ng-pristine ng-untouched ng-valid ng-empty sousuo_department_select">
                                <option value="" class="" selected="selected">部门</option>

                                {{#each .}}
                                <option label="d_name" value="{{id}}">{{d_name}}</option>
                                {{/each}}
                            </select>
                            <span class="se-po se-po-span"></span>
                        </div>
                    </script>
                    <div id="role_list" style="display: inline-block"></div>
                    <script type="x-handlebar-template" id="role_list_tpl">
                        <div class="se-re">
                            <select ng-options="c.id as c.realName for c in salesman.content" ng-model="param.roleId"
                                    class="ng-pristine ng-untouched ng-valid ng-empty">
                                <option value="" class="" selected="selected">业务员</option>
                                {{#each content}}
                                <option label="{{realName}}" value="number:127">{{realName}}</option>
                                {{/each}}

                            </select>
                            <span class="se-po"></span>
                        </div>
                    </script>
                    <button class="search">
                        <i class="iconfont icon-sousuo"></i>
                    </button>
                </div>
                <!--提示操作-->
                <div class="public-bghint">
                    <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                    <i class="iconfont icon-icon-copy-copy"></i>
                    <span class="calNum">筛选<span class="result">0</span>条结果</span>
                </div>
                <ul class="public-ulList" ng-show="loanLaterShow.caozuo">
                    <li>显示拥有该栏目管理权限的数据</li>
                    <li>拥有权限的管理员会显示对应的操作按钮；</li>
                </ul>
                <div style="height: 20px;"></div>
                <div class="table-scroll">
                    <!--tabel 列表-->
                    <table class="table public-table PoInput">
                        <thead>
                        <tr>
                            <td>全选</td>
                            <td>创单时间</td>
                            <td>流水单号</td>
                            <td>关联借款编号</td>
                            <td>客户姓名</td>
                            <td>期数</td>
                            <td>借款金额</td>
                            <td>实际收款</td>
                            <td>坏账金额</td>
                            <td>业务员</td>
                            <td>部门</td>
                            <td>操作</td>
                        </tr>

                        </thead>

                            <tbody id="badDebtsDtails_content">

                            </tbody>
                        <script id="badDebtsDtails_content_tpl" type="x-handlebars-template">

                            {{#if content.list}}
                            {{#each content.list}}
                            <tr ng-repeat="i in data.content.list" ng-click="F.tabClick($event)"
                                class="table-tr-hover ">
                                <td><input type="checkbox" name="ch_id" value="{{id}}"></td>
                                <td>{{found_time}}</td>
                                <td>{{flow_number}}</td>
                                <td>{{loan_number}}</td>
                                <td>{{union_name}}</td>
                                <td>{{periods}}</td>
                                <td>￥{{#thounsandBit money}}{{/thounsandBit}}</td>
                                <td>￥{{#thounsandBit real_payment_money}}{{/thounsandBit}}</td>
                                <td>￥{{#thounsandBit bad_debt}}{{/thounsandBit}}</td>
                                <td>{{admin_name}}</td>
                                <td>{{#if d1_name}}
                                    {{#if d3_name}}{{d3_name}}&gt;&nbsp;{{/if}}{{#if d2_name}}{{d2_name}}&gt;&nbsp;{{/if}}{{#if
                                    d1_name}}{{d1_name}}{{/if}}
                                    {{/if}}</td>
                                <td>
                                    <div class="se-re sel-blue">
                                        <select class="tabHint tt1677 ng-not-empty">
                                            <option value="-1" selected="selected">选择操作</option>
                                            <!-- ngIf: HbHr.hr178 && i.bad_debt>0 && i.is_lock!=1 -->
                                            <option ng-if="HbHr.hr178 &amp;&amp; i.bad_debt>0 &amp;&amp; i.is_lock!=1"
                                                    value="2" path="finance" params="badDebtCollection"
                                                    param="id:1677,bad_debt:10000,type:2" class="">收款操作
                                            </option><!-- end ngIf: HbHr.hr178 && i.bad_debt>0 && i.is_lock!=1 -->
                                            <!-- ngIf: HbHr.hr321 && i.is_lock==1 -->
                                        </select>
                                        <span class="se-po-blue"></span>
                                    </div>
                                    <!-- ngIf: HbHr.hr179 -->
                                    <button ng-if="HbHr.hr179" class="tabHint "
                                            ng-click="F.boxTem('finance','badLoanRe',$event);$event.stopPropagation();"
                                            param="id:517,fid:1677">
                                        坏账原因
                                    </button><!-- end ngIf: HbHr.hr179 -->
                                </td>
                            </tr>
                            {{/each}}

                            {{else}}
                            <tr ng-if="data.content.list.length ==0" class="">
                                <td colspan="16">暂时找不到数据</td>
                            </tr>

                            {{/if}}
                        </script>

                        <tfoot class="public-botPage">
                        <tr>
                            <td>
                                <!-- 全选反选  -->
                                <input type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                            </td>
                            <td colspan="12">
                                <div class="public-botPage-left">
                        <span>
                            <span>全选</span>
                        </span>
                                    <div class="se-re">
                                        <select class="tabHint supportc ng-pristine ng-untouched ng-valid ng-not-empty"
                                                id="selExportvalid" ng-model="selExportval" ng-change="selExport(this)">
                                            <option value="-1" selected="selected">批量操作</option>
                                            <!-- ngIf: HbHr.hr287  -->
                                            <option ng-if="HbHr.hr287 " value="1" ng-click="selExport()"
                                                    class="">批量导出
                                            </option><!-- end ngIf: HbHr.hr287  -->
                                        </select>
                                        <span class="se-po"></span>
                                    </div>
                                </div>
                                <div class="public-botPage-right">
                                    <div class="bad-page-container page-container" style="float: right; padding: 15px 0;"></div>
                                </div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!--底部操作-->
                </div>
            </div><!-- end ngIf: HbHr.hr177 -->
        </div>
 </div>
<script type="text/javascript" src="static/js/jquery-plugin/jpager.js?_v=190102162154"></script>
 <script type="text/javascript" src="static/js/page/finance/badDebtsDtails/bad_debts_dtails.js?_v=190102162154"></script>
<%@include file="../../common/web_bottom.jsp" %>
